From: vh249@arcadians.cl.cam.ac.uk Date: Thu, 15 Sep 2005 12:21:23 +0000 (+0000) Subject: add support for ipv6 address in choose_vnc_display function X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16780^2~73 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=1e2fc48ada71772332a09839328d66d2a2312e5f;p=xen.git add support for ipv6 address in choose_vnc_display function getting the port from the latest field, not the first one. fix suggested by Nickolai Zeldovich. close bug #231 Signed-off-by: Vincent Hanquez --- diff --git a/tools/python/xen/xm/create.py b/tools/python/xen/xm/create.py index 482db15b89..8bc6c3e3d1 100644 --- a/tools/python/xen/xm/create.py +++ b/tools/python/xen/xm/create.py @@ -673,7 +673,7 @@ def choose_vnc_display(): # Local port is field 3. y = x.split()[3] # Field is addr:port, split off the port. - y = y.split(':')[1] + y = y.split(':')[-1] r.append(int(y)) return r